<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title></title>
    <include file="public@head" />

</head>
<body>
<include file="public@nav" />

<div class="center cirWrapper clearfix">
    <include file="public@persnav" />
    <div class="pn_right_wra fr">
        <h3>
            收到的礼品
        </h3>
        <ul class="gift_list">
            <li class="title">
                <span>商家</span>
                <span>礼品</span>
                <span>时间</span>
            </li>
        </ul>

    </div>
</div>

<include file="public@footer" />
<include file="public@scripts" />
<script type="text/javascript" src="__TMPL__public/assets/js/personal.js"></script>
<script>
    headerMove(7);
    //收到的礼品
    var prize_param = {
        url:'Records/prizes',
        data:{
            page:1
        }
    };
    $.JsonRpc(prize_param,function(data){
        console.log(data);
        data =  data.data.list;
        var tpl="";
        $.each(data,function(i){
            var o_createtime = data[i].o_createtime.substr(0,16).replace(/-/g,".").replace(/ /g,"-");
            tpl+=
                '<li>'+
                '<span>'+data[i].g_sponsor+'</span>'+
                '<span>'+data[i].g_name+'</span>'+
                '<span>'+o_createtime+'</span>'+
                '</li>';
        });
        $(tpl).appendTo(".gift_list");
    });

</script>
</body>
</html>